<template>
  <div>
    <Header/>
    <router-view></router-view>
    <Footer v-show="!$route.meta.footerIsHidden"/>
  </div>
</template>

<script>
import Header from '@comp/Header'
import Footer from '@comp/Footer'
import {mapActions} from 'vuex'
export default {
  name:'App',
  components:{
    Header,
    Footer
  },
  mounted(){
    this.getCategoryList()
  },
  methods: {
    //只请求一次三级列表，避免组件复用时频繁请求
    ...mapActions("home", ["getCategoryList"]),
  },
}
</script>

<style>

</style>